﻿using HotChocolate.Authorization;

namespace HotChocolateDemo.OrderService.Host.GraphTypes;

[ExtendObjectType(typeof(Query))]
public class OrderResolver
{
    public OrderEntity GetOrder() => new OrderEntity
    {
        Title = "This is order service.",
    };

    public string GetCurrentTime() => DateTime.Now.ToString();
}

public class OrderEntity
{
    public string Title { get; set; } = default!;
}
